gtkwindow: apply CSD adjustments to the default size when used instead of when setting it
authorChristoph Reiter <creiter@src.gnome.org>
Wed, 18 Nov 2015 18:17:01 +0000 (19:17 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Thu, 19 Nov 2015 20:42:24 +0000 (21:42 +0100)
commit308aec53c686eae69adbeaf5ca234a29cfd6eefa
tree6270745e8f84f82e836acd2cb0f694a2a2a9b070
parent1080ffdf19fe49c803da0baa4047cce3c29815b6
gtkwindow: apply CSD adjustments to the default size when used instead of when setting it

Before the resulting window size would differ if the default size was set
before adding a headerbar vs after. Now the saved state is again the actual
requested size and it is adjusted at the time we request a window size.

https://bugzilla.gnome.org/show_bug.cgi?id=756618
gtk/gtkwindow.c